package com.yumingjaing.functioninterface;

import java.util.function.Function;

/**
 * @description:
 * @author: John
 * @version: Function2Test.java, v1.0 2024年11月25日 20:33
 */
public class Function2Test {

    public static void main(String[] args) {
        System.out.println(stringFunction().apply("zhang"));
    }

    private static Function<String, Integer> stringFunction() {
        return String::length;
    }
}